package com.minyue.sqlsession;

import com.minyue.pojo.Configuration;
import com.minyue.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * @author ：minyue
 * @date ：Created in 2021/7/22 11:57 下午
 * @description：处理器对象
 */
public interface Executor {

    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object[] params) throws Exception;

    void close() throws SQLException;

    int update(Configuration configuration, MappedStatement mappedStatement, Object[] param) throws Exception;
}
